-- GENERATED SPELL FOR [Mechano-Frostwalker] --


function spell0_6227(pUnit, Event) --@Ice Blast,Self--
pUnit:FullCastSpellOnTarget(11264,pUnit)
pUnit:RegisterEvent('Sorts_6227', 10000, 1)
end

function Sorts_6227(pUnit, Event)
local choix_sorts_6227 = math.random(0, 0)
if choix_sorts_6227 == 0 then
pUnit:RegisterEvent('spell0_6227', 1, 1)
end
end

function mob6227_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6227', math.random(1500, 3000), 1)
end

function mob6227_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6227_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6227_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6227, 1, 'mob6227_Action')
RegisterUnitEvent(6227, 2, 'mob6227_Leave')
RegisterUnitEvent(6227, 3, 'mob6227_Kill')
RegisterUnitEvent(6227, 4, 'mob6227_Die')
